//author:dhclly
const o = console.log;

class Shape {
  area: number;
  color: string;
  constructor(
    public name: string,
    public width: number,
    public height: number
  ) {
    this.area = width * height;
    this.color = "pink";
  }

  desc() {
    return (
      "I'm " +
      this.color +
      " " +
      this.name +
      " with an area of " +
      this.area +
      " cm squared."
    );
  }
}

var square = new Shape("square", 30, 30);

o(square.desc());
o("Area of Shape: " + square.area);
o("Name of Shape: " + square.name);
o("Color of Shape: " + square.color);
o("Width of Shape: " + square.width);
o("Height of Shape: " + square.height);
